package com.zatech.cgnci.project.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zatech.cgnci.project.dto.CgnciEndorsementInsuranceQueryDTO;
import com.zatech.cgnci.project.entity.CgnciEndorsementDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zatech.cgnci.project.vo.CgnciEndorsementInsurancePageVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 批改主表 Mapper 接口
 * </p>
 *
 * @author Generator
 * @since 2024-12-17
 */
@Mapper
public interface CgnciEndorsementMapper extends BaseMapper<CgnciEndorsementDO> {

    IPage<CgnciEndorsementInsurancePageVO> pageEndorsementInsurance(@Param("page") Page page, @Param("dto") CgnciEndorsementInsuranceQueryDTO queryDTO);

    Integer getIsEndorsement(@Param("insuranceId") Long insuranceId);
}
